package net.sesami.nhg.ebd.batch.domain.hibernate;

import java.io.Serializable;

public class POItemPK implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer POID;
	private Integer LineNum;

	public Integer getPOID() {
		return POID;
	}

	public void setPOID(Integer pOID) {
		POID = pOID;
	}

	public Integer getLineNum() {
		return LineNum;
	}

	public void setLineNum(Integer lineNum) {
		LineNum = lineNum;
	}

	@Override
	public boolean equals(Object arg0) {
		if (arg0 == null)
			return false;
		if (!(arg0 instanceof POItemPK))
			return false;
		POItemPK arg1 = (POItemPK) arg0;
		return (this.POID.intValue() == arg1.getPOID().intValue())
				&& (this.LineNum.intValue() == arg1.getLineNum().intValue());
	}

	@Override
	public int hashCode() {
		int hsCode;
		hsCode = POID.hashCode();
		hsCode = 19 * hsCode + LineNum.hashCode();
		return hsCode;
	}

}
